//利用sizeof运算符，打印数据类型的大小

#include <stdio.h>
int main()
{
	printf("char类型的大小为%ld\n",sizeof(char));
	printf("int类型的大小为%ld\n",sizeof(int));
	printf("long int类型的大小为%ld\n",sizeof(long int));
	printf("short int类型的大小为%ld\n",sizeof(short int));
	printf("unsigned long类型的大小为%ld\n",sizeof(unsigned long));
	printf("short类型的大小为%ld\n",sizeof(short));
	printf("long类型的大小为%ld\n",sizeof(long));
	printf("float类型的大小为%ld\n",sizeof(float));
	printf("double类型的大小为%ld\n",sizeof(double));
	printf("long double类型的大小为%ld\n",sizeof(long double));

	return 0;
}
